package com.cl.oauth.service.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author csj
 * @since 2020-11-24
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("sys_user")
public class SysUser implements Serializable {

    private static final long serialVersionUID=1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 系统标识
     */
    @TableField("sys_mark")
    private String sysMark;

    /**
     * 商户ID（公司ID）
     */
    @TableField("company_id")
    private Integer companyId;

    /**
     * 用户名
     */
    @TableField("user_name")
    private String userName;

    /**
     * 登陆名
     */
    @TableField("login_name")
    private String loginName;

    /**
     * 加密后的密码
     */
    @TableField("password")
    private String password;

    /**
     * 手机号
     */
    @TableField("mobile")
    private String mobile;

    /**
     * 用户头像
     */
    @TableField("avatar")
    private String avatar;

    /**
     * 是否禁用
     */
    @TableField("enable")
    private Boolean enable;

    /**
     * 是否删除
     */
    @TableField("deleted")
    private Boolean deleted;

    /**
     * 邮箱地址
     */
    @TableField("email")
    private String email;

    /**
     * 部门ID
     */
    @TableField("dept_id")
    private Integer deptId;

    /**
     * 密码重置时间
     */
    @TableField("pwd_reset_time")
    private Long pwdResetTime;

    @TableField("create_time")
    private Long createTime;

    @TableField("create_by")
    private String createBy;

    @TableField("update_time")
    private Long updateTime;

    @TableField("update_by")
    private String updateBy;


}
